import http from '@/utils/http';

interface LoginReq {
  username: string,
  password: string
}
export const Login = (data: LoginReq) => {
  return http.post('/api/base/login', data)
}
export const getUserInfo = (token: string) => {
  return http.get('/api/base/userinfo', { params: { token } })
}